// @ts-ignore
/* eslint-disable */
import request from '@/services/request';

/** 列表 POST /v1/evaluations */
export async function evaluationV1ControllerIndex(
  body: API.EvaluationIndexDto,
  options?: { [key: string]: any },
) {
  return request<{ total: number; list: API.EvaluationIndexResult[] }>('/v1/evaluations', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 数据文章详情 GET /v1/evaluations/${param0} */
export async function evaluationV1ControllerShow(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.EvaluationV1ControllerShowParams,
  options?: { [key: string]: any },
) {
  const { uuid: param0, ...queryParams } = params;
  return request<API.EvaluationShowResult>(`/v1/evaluations/${param0}`, {
    method: 'GET',
    params: { ...queryParams },
    ...(options || {}),
  });
}

/** 批量通过uuid来获取 POST /v1/evaluations/batch */
export async function evaluationV1ControllerBatch(
  body: API.EvaluationBatchDto,
  options?: { [key: string]: any },
) {
  return request<API.EvaluationBatchResult[]>('/v1/evaluations/batch', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 批量查标题 GET /v1/evaluations/batch-title */
export async function evaluationV1ControllerBatchTitle(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.EvaluationV1ControllerBatchTitleParams,
  options?: { [key: string]: any },
) {
  return request<API.EvaluationBatchTitleResult[]>('/v1/evaluations/batch-title', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
